package com.canbot.u05.activity.customvoice.tool;

import java.util.regex.Pattern;

/**
 * Created by cool on 2018/6/6.
 */

public class CheckStringUtils {
        /**
         * 验证只包含字母，数字，中文
         *
         * @param str
         * @return
         */
        public static boolean check(String str) {
                String all = "^[a-zA-Z0-9%\\u4e00-\\u9fa5]+$";
                Pattern pattern = Pattern.compile(all);
                return pattern.matches(all, str);
        }

}
